/**
 * Created by Administrator on 2017/8/28 0028.
 */
import Vue from 'vue'
import VueResource from 'vue-resource'
import * as config from './config'
// import '../mock/bimserver-test'

Vue.use(VueResource)
// Vue.http.headers.common['content-type'] = 'application/json'

// 登陆
// export const judgeUser = (options) => Vue.http.post(config.MY_NODE_SERVICE, options)
export const judgeUser = (options) => Vue.http.post(config.MY_NODE_3000_SERVICE + '/user', options)

// 增删改查
export const addClient = (options) => Vue.http.put(config.MY_NODE_3000_SERVICE + '/client', options)
export const deleteClient = (options) => Vue.http.delete(config.MY_NODE_3000_SERVICE + '/client/' + options.id)
export const updateClient = (options) => Vue.http.put(config.MY_NODE_3000_SERVICE + '/client/' + options.id, options)
